package kgc.qy.mapper;

import kgc.qy.pojo.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PatientMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Patient record);

    int insertSelective(Patient record);

    Patient selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Patient record);

    int updateByPrimaryKey(Patient record);

    /*查找病人的方法*/
    List<Patient> selectAllPatient(@Param("id") Long id,
                                   @Param("name") String name);

   /* int add(Patient patient)*/
}